// ignore_for_file: must_be_immutable

part of 'login_bloc.dart';

/// Represents the state of Login in the application.
class LoginState extends Equatable {
  LoginState({
    this.emailController ,
    this.passwordController,
    this.status = LoginStatus.initial,
    this.user,
    this.barcode
  });

  TextEditingController? emailController;

  TextEditingController? passwordController;
  String? barcode;

  LoginStatus status;
  User? user;

  @override
  List<Object?> get props => [
        emailController,
        passwordController,
        status,
        user,
        barcode,
      ];
  LoginState copyWith({
    TextEditingController? emailController,
    TextEditingController? passwordController,
    LoginStatus? status,
    User? user,
    String? barcode,
  }) {
    return LoginState(
      emailController: emailController ?? this.emailController,
      passwordController: passwordController ?? this.passwordController,
      status: status ?? this.status,
      user: user ?? this.user,
      barcode: barcode?? this.barcode
    );
  }
}
